<html>
<head><title>ROI Calculator</title>
<link rel="stylesheet" type="text/css" href="style.css" />  
</head>

<SCRIPT LANGUAGE="JavaScript">
function Calculate(form) 
{
var Equipment=ROIform.Equipment.value;

var PlanType=ROIform.PlanType.value;

var ProcInpatient=ROIform.ProcInpatient.value;

var ProcOutpatient=ROIform.ProcOutpatient.value;

var NumProcedures=ROIform.NumProcedures.value;

var OutPatientCharge =ROIform.OutPatientCharge.value;

var InPatientCharge=ROIform.InPatientCharge.value;

var InsiteOption=ROIform.InsiteOption.value;


if(!(ROIform.NumProcedures.value))
{alert("Please input the number of procedures per day");
return false;}

if(isNaN(ROIform.NumProcedures.value))
{alert("Only Numbers Allowed!");
return false;}

if(!(ROIform.ProcInpatient.value))
{alert("Please input percent of procedures inpatient");
return false;}

if(isNaN(ROIform.ProcInpatient.value))
{alert("Only Numbers Allowed!");
return false;}

if(!(ROIform.ProcOutpatient.value))
{alert("Please input percent of procedures outpatient");
return false;}

if(isNaN(ROIform.ProcOutpatient.value))
{alert("Only Numbers Allowed!");
return false;}

if(!(ROIform.OutPatientCharge.value))
{alert("Please input the out-patient charge");
return false;}

if(isNaN(ROIform.OutPatientCharge.value))
{alert("Only Numbers Allowed!");
return false;}

if(isNaN(ROIform.InPatientCharge.value))
{alert("Only Numbers Allowed!");
return false;}

if(!(ROIform.InPatientCharge.value))
{alert("Please input the in-patient charge");
return false;}


var np = ROIform.NumProcedures.value;
var ip = ROIform.ProcInpatient.value;
var op = ROIform.ProcOutpatient.value;

var totalpercent = parseFloat(ip) + parseFloat(op);
if (totalpercent != 100.0){
alert("Inpatient + Outpatient should = 100%.");
return false;}

var pl = ROIform.PlanType.value
var insite = 0;
if (ROIform.InsiteOption.checked){
	insite = 2500;
	}else  { insite =0;
	}

var Price= parseFloat(ROIform.Equipment.value) * parseFloat(ROIform.PlanType.value) + parseFloat(insite);

Price = Price.toFixed(2);
ROIform.ContractPrice.value = formatCurrency(Price);

var HrsSaved= (parseFloat(ROIform.NumProcedures.value) * parseFloat(ROIform.InPatientCharge.value) * (parseFloat(ROIform.ProcInpatient.value)/100)
 + parseFloat(ROIform.NumProcedures.value) * parseFloat(ROIform.OutPatientCharge.value) * (parseFloat(ROIform.ProcOutpatient.value)/100))/8;

HrsSaved = HrsSaved.toFixed(2);
ROIform.HoursSaved.value = formatCurrency(HrsSaved);
return false;
}

function formatCurrency(num) {
num = num.toString().replace(/\$|\,/g,'');
if(isNaN(num))
	num = "0";
sign = (num == (num = Math.abs(num)));
num = Math.floor(num*100+0.50000000001);
cents = num%100;
num = Math.floor(num/100).toString();
if(cents<10)
		cents ="0" + cents;
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+','+
num.substring(num.length-(4*i+3));
return(((sign)?'':'-') + '$' + num + '.' + cents);
}


</SCRIPT>

<body>&nbsp;&nbsp;
<img src="images/GELogo.JPG" Align="Middle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="images/ROICalculator.JPG" width=254 height=144 Align="Middle">
<a name=Top></a>
<br /><br />
<h4>GEHC Service Center : ROI Calculator</h4>
<TABLE height="1000" width=1000 border="0">
<TR>
	<TD colspan="2" bgcolor="#3B73B9" height="20">
		<h5><font color=white>Welcome<br></font></h5>
	</TD>
</TR>
<TR>
	<TD width="150" vAlign="top" bgcolor="whitesmoke" style="color:#3B73B9;"><P dir="ltr" style="MARGIN-LEFT: 9px"><br />
		<STRONG>Links to Other Sites</STRONG><br />
					<FONT color="#ff0066">&gt;</FONT> <a href="http://www.ge.com">GE Home Page</a><br /><br />
		<STRONG>Links</STRONG><br>
					<FONT color="#ff0066">&gt;</FONT> <a href=logoff.jsp>Logon</a><br /><br />
					
		<STRONG>Instructor Samples</STRONG><br />
					<FONT color="#ff0066">&gt;</FONT> <a href=javascript.jsp>JavaScript Samples</a><br />
					<FONT color="#ff0066">&gt;</FONT> <a href=SchoolMascot.htm>School/Mascot</a><br />						
					<FONT color="#ff0066">&gt;</FONT> <a href=userlist.jsp>User List</a><br /><br />					
					
		<STRONG>Workshop Solutions</STRONG><br />
					<FONT color="#ff0066">&gt;</FONT> <a href=ServicePlans.htm>Service Plans</a><br />	
					<FONT color="#ff0066">&gt;</FONT> <a href=ContactUs.htm>Contact Us</a><br />					
					<FONT color="#ff0066">&gt;</FONT> <a href=ROICalculator.htm>ROI Calculator</a><br />					
					<FONT color="#ff0066">&gt;</FONT> <a href=ShipCalculator.htm>Shipment Calculator</a><br />
					<FONT color="#ff0066">&gt;</FONT> <a href=productlist.jsp>Product List</a><br />	
					<FONT color="#ff0066">&gt;</FONT> <a href=customerlist.jsp>Maintain Customer</a><br />
		</TD>
<TD width="850" vAlign="top"> 


<form action="" method=post name=ROIform>
<table border=0 cellpadding=9 cellspacing= width="500">
<tr><td>Equipment:</td><td><select name="Equipment">
<option value="130155">Computed Tomography</option>
<option value="471273">Magnetic Resonance Imaging</option>
<option value="304333">Nuclear Medicine</option>
<option value="138933">X-Ray</option>
<option value="260133">Ultrasound</option>
</select></td>
 
<td>Number of procedures per day:</td><td><input type=text name=NumProcedures size=20></td></tr>
 
<tr><td>Plan Type:</td><td><select name="PlanType">
<option value=".08">Critical Care</option>
<option value=".06">Primary Care</option>
<option value=".04">Preventative Maintenance</option>
</select></td>
 
<td>Percent of procedures inpatient</td><td><input type=text name=ProcInpatient size=20></td></tr>
<tr><td>Insite Option:</td><td><input type=checkbox name=InsiteOption></td><td>Percent of procedures outpatient:</td><td><input type=text name=ProcOutpatient size=20></td></tr>   
<tr><td>In-Patient Charge:</td><td>$<input type=text name=InPatientCharge size=20></td>

<td>Out-patient Charge:</td><td>$<input type=text name=OutPatientCharge size=20></td></tr>   
<tr><td><input type=button name = button1 value="Calculate" onClick=Calculate(this.form)></td></tr>   
</table>  
 
<hr />   
<table width=100%>
<tr><td>Contract Price</td><td><input type=text name=ContractPrice size=20 Readonly></td> 
<td>Every hour saved is worth:</td><td><input type=text name=HoursSaved size=20 Readonly></td></tr>

</table>
</form>  
</TD></TR></TABLE>

</BODY>


</HTML>